package proyecto.testcasetool.provider.main;

import java.util.Collection;

import org.eclipse.emf.common.notify.AdapterFactory;
import org.eclipse.emf.edit.domain.EditingDomain;

import proyecto.testcasetool.UseCase;
import proyecto.testcasetool.provider.UseCaseItemProvider;

public class UseCaseItemProviderWithoutChildren extends UseCaseItemProvider {

	public UseCaseItemProviderWithoutChildren(AdapterFactory adapterFactory) {
		super(adapterFactory);
	}
	
	@Override
	public Collection<?> getChildren(Object object) {
		return null;
	}
	
	
	@Override
	public boolean hasChildren(Object object) {
		return false;
	}
	
	@Override
	public Collection<?> getNewChildDescriptors(Object object,
			EditingDomain editingDomain, Object sibling) {
		return null;
	}

	@Override
	public String getColumnText(Object object, int columnIndex) {
		UseCase item = (UseCase)object;
		
		switch (columnIndex) {
			case 0: return item.getName();
		}
		return "";
	}
}
